<?php
/*---------------------------------------------------+
| Maztrex Control Panel
| Copyright 2009 - 2011 Maztrex Entertainment
| http://mcp.maztrex.com/
+----------------------------------------------------*/
include "config.php";
?>
<?php
// world 1 fuction starts here
if($world1_enable == true)
{
echo "<tr>";
function realm_status1($host, $port)
{
error_reporting(0);
$etat = fsockopen($host,$port,$errno,$errstr,3);
if(!$etat)
{
return false;
}
else
{
return true;
}
}
echo "<form action='' method='post'>";
if(realm_status1($sip1, $sport1) == false)
{
echo "<td>1. $world1_name</td><td><center>$down</center></td>";
echo "<td>";
include 'start_world1.php';
echo "</td>";
}
elseif(realm_status1($sip1, $sport1) == true)
{
echo "<td>1. $world1_name</td><td><center>$up</center></td>";
echo "<td>";
include 'stop_world1.php';
include 'restart_world1.php';
echo "</td>";
}
else
{
echo "<td>1. $world1_name</td><td><center>$down</center></td>";
echo "<td>";
include 'start_world1.php';
echo "</td>";
echo "</form>";
echo "</tr>";
}
}
else
{
echo "";
}
//world 1 function ends here
?>